<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="input" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>添加新闻类型</title>
  </head>
  <body>
  	<h3>添加新闻类型</h3>
  	<hr>
  	<form:form action="TypesBiz.do?op=insert" method="post" modelAttribute="types">
  		类型名称：<input path="title" type="text" name="typename"><hr>
  		<div style="width:70px; float:left">类型备注：</div>
		<form:textarea rows="10" cols="100" path="remark" name="typesremark"></form:textarea>
  		<hr>
  		<input type="submit" style="margin-left: 380px; margin-top: 20px;" class="btn btn-default" value="提交"></input>
  	</form:form>
  	<div class="${ requestScope.error==null ? 'alert.success' : 'alert.danger' }">
  	${ requestScope.error==null ? "" : requestScope.error }
  	</div>
  </body>
</html>
